<template>
  <div>
    <el-form style="width: 600px; margin: 100px auto" :model="form" label-width="80px">
      <el-form-item label="组织名称">
        <el-input v-model="form.name" disabled />
      </el-form-item>
      <el-form-item label="组织驻地">
        <el-input v-model="form.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="组织电话">
        <el-input v-model="form.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="组织邮箱">
        <el-input v-model="form.mailbox" disabled />
      </el-form-item>
      <el-form-item label="上级组织">
        <el-input v-model="form.prevParty" disabled />
      </el-form-item>
      <el-form-item label="成立时间">
        <el-input v-model="form.createTime" disabled />
      </el-form-item>
      <!-- <el-form-item label="组织区域">
        <el-input v-model="form.companyArea" disabled />
      </el-form-item>
      <el-form-item label="组织规模">
        <el-input v-model="form.companySize" disabled />
      </el-form-item>
      <el-form-item label="组织业务">
        <el-input v-model="form.industry" disabled />
      </el-form-item> -->
      <el-form-item label="备注">
        <el-input v-model="form.remarks" type="textarea" clearable :rows="5" placeholder="请输入部门介绍" resize="none" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getCompanyInfo } from '@/api/company'
import { mapGetters } from 'vuex'
export default {
  data() {
    return {
      form: {}
    }
  },
  computed: {
    ...mapGetters(['userInfo'])
  },
  async created() {
    const res = await getCompanyInfo(this.userInfo.companyId)
    this.form = res.data
  }
}
</script>
